/*
 * logging_test.cpp
 *
 *  Created on: 2010/08/27
 *      Author: root
 */

#include "logging.h"

#include <string>
#include <locale>

// 入口関数
int main(int argc, char* argv[])
{
    std::setlocale(LC_ALL,"japanese");
    logging::init();
    logging::get()->set_locale(std::locale("Japanese"));
    logging::get()->set_file("test.log");
    logging::get()->debug("hahahaha");
    logging::get()->debug_f("ANSI: %d, %s", 120, "h漢字ahaha");
    logging::get()->info("hahahaha");
    logging::get()->info_f("ANSI: %d, %s", 1200, "h漢字ahaha");
    logging::get()->error("hahahaha");
    logging::get()->error_f("ANSI: %d, %s", 12000, "h漢字ahaha");
    logging::get()->warn("hahahaha");
    logging::get()->warn_f("ANSI: %d, %s", 120000, "h漢字ahaha");
    logging::finalize();
    std::cout << "done" << std::endl;
    return 0;
}
